import ajax from '../../utils/ajax'
const my_yes = document.querySelector('.container header .yes')
const my_no = document.querySelector('.container header .no')



init();

async function init() {
    //获取已登录用户信息

    const result = await ajax('get', '/api/getUserInfo')
    if (result.flag) {
        my_yes.style.display = 'block'
    } else {
        my_no.style.display = 'block'
    }
}